Optimal. Leaf size=50 \[ -\frac{c \log \left (a^2 x^2+1\right )}{3 a}+\frac{1}{3} a^2 c x^3 \tan ^{-1}(a x)-\frac{1}{6} a c x^2+c x \tan ^{-1}(a x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0234937, antiderivative size = 65, normalized size of antiderivative = 1.3, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {4878, 4846, 260} \[ -\frac{c \left (a^2 x^2+1\right )}{6 a}-\frac{c \log \left (a^2 x^2+1\right )}{3 a}+\frac{1}{3} c x \left (a^2 x^2+1\right ) \tan ^{-1}(a x)+\frac{2}{3} c x \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4878
Rule 4846
Rule 260
Rubi steps
\begin{align*} \int \left (c+a^2 c x^2\right ) \tan ^{-1}(a x) \, dx &=-\frac{c \left (1+a^2 x^2\right )}{6 a}+\frac{1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)+\frac{1}{3} (2 c) \int \tan ^{-1}(a x) \, dx\\ &=-\frac{c \left (1+a^2 x^2\right )}{6 a}+\frac{2}{3} c x \tan ^{-1}(a x)+\frac{1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)-\frac{1}{3} (2 a c) \int \frac{x}{1+a^2 x^2} \, dx\\ &=-\frac{c \left (1+a^2 x^2\right )}{6 a}+\frac{2}{3} c x \tan ^{-1}(a x)+\frac{1}{3} c x \left (1+a^2 x^2\right ) \tan ^{-1}(a x)-\frac{c \log \left (1+a^2 x^2\right )}{3 a}\\ \end{align*}
Mathematica [A] time = 0.0103881, size = 50, normalized size = 1. \[ -\frac{c \log \left (a^2 x^2+1\right )}{3 a}+\frac{1}{3} a^2 c x^3 \tan ^{-1}(a x)-\frac{1}{6} a c x^2+c x \tan ^{-1}(a x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.024, size = 45, normalized size = 0.9 \begin{align*} -{\frac{a{x}^{2}c}{6}}+cx\arctan \left ( ax \right ) +{\frac{{a}^{2}c{x}^{3}\arctan \left ( ax \right ) }{3}}-{\frac{c\ln \left ({a}^{2}{x}^{2}+1 \right ) }{3\,a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.975009, size = 61, normalized size = 1.22 \begin{align*} -\frac{1}{6} \,{\left (c x^{2} + \frac{2 \, c \log \left (a^{2} x^{2} + 1\right )}{a^{2}}\right )} a + \frac{1}{3} \,{\left (a^{2} c x^{3} + 3 \, c x\right )} \arctan \left (a x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.61202, size = 109, normalized size = 2.18 \begin{align*} -\frac{a^{2} c x^{2} - 2 \,{\left (a^{3} c x^{3} + 3 \, a c x\right )} \arctan \left (a x\right ) + 2 \, c \log \left (a^{2} x^{2} + 1\right )}{6 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.747634, size = 48, normalized size = 0.96 \begin{align*} \begin{cases} \frac{a^{2} c x^{3} \operatorname{atan}{\left (a x \right )}}{3} - \frac{a c x^{2}}{6} + c x \operatorname{atan}{\left (a x \right )} - \frac{c \log{\left (x^{2} + \frac{1}{a^{2}} \right )}}{3 a} & \text{for}\: a \neq 0 \\0 & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12351, size = 58, normalized size = 1.16 \begin{align*} -\frac{1}{6} \, a c x^{2} + \frac{1}{3} \,{\left (a^{2} c x^{3} + 3 \, c x\right )} \arctan \left (a x\right ) - \frac{c \log \left (a^{2} x^{2} + 1\right )}{3 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]